﻿using System;
using System.Collections.Generic;
using System.Security.Claims;
using System.Text;
using XW.Core;

namespace XW.Web.Framework.Permissions
{
    public class SupperAdminPermissionHandler : IPermissionHandler
    {
        public bool HasPermission(ClaimsPrincipal principal, string permissionName)
        {
            var isSup = principal.FindFirstValue(JwtTokenConst.JWT_SUP_ADMIN); 
            return isSup == "1";
        }
    }
}
